﻿/**--------------公共变量 begin------------*/
var this_url = window.location.href.toLowerCase();
var regemail = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
var regtelphone = /(^(\d{11})$|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/;
var regnum = /^\d+$/;
var regcode = /[1-9]\d{5}(?!\d)/;
var regID = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])(\d{4}|\d{3}x)$/;
var this_protocol = window.location.protocol;
var this_host = window.location.host;
var GetDomain = this_protocol + '//' + this_host;
var hash = {
    'qq.com': '/mail.qq.com',
    'gmail.com': '/mail.google.com',
    'sina.com': '/mail.sina.com.cn',
    '163.com': '/mail.163.com',
    '126.com': '/mail.126.com',
    'yeah.net': '/www.yeah.net/',
    'sohu.com': '/mail.sohu.com/',
    'tom.com': '/mail.tom.com/',
    'sogou.com': '/mail.sogou.com/',
    '139.com': '/mail.10086.cn/',
    'hotmail.com': '/www.hotmail.com',
    'live.com': '/login.live.com/',
    'live.cn': '/login.live.cn/',
    'live.com.cn': '/login.live.com.cn',
    '189.com': '/webmail16.189.cn/webmail/',
    'yahoo.com.cn': '/mail.cn.yahoo.com/',
    'yahoo.cn': '/mail.cn.yahoo.com/',
    'eyou.com': '/www.eyou.com/',
    '21cn.com': '/mail.21cn.com/',
    '188.com': '/www.188.com/',
    'foxmail.coom': '/www.foxmail.com'
};

/*---------------------专题预约 ------------------------*/
$(document).on('click', '.Specialsubject', function () {
    var name = "", phone = "", address = "";

    //if ($(".form_box").validate('submitValidate'))//返回布尔值   
    if ($(this).parents('.AForm').validate('submitValidate')) {
        name = $(this).parents('div.AForm').find('.Aname').val();
        phone = $(this).parents('div.AForm').find('.Aphone').val();
        //address = $(this).parents('div.AForm').find('.Aaddress').val();

        var data = "cmd=Specialsubject&id=" + $(this).attr("data-id") + "&Title=" + $(this).attr("data-title") + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&name=" + name + "&phone=" + phone ;


        ajaxhelpS(data, function (msg) {
            try {
                var obj = eval('(' + msg + ')');

                if (unescape(obj.state) == 1) {

                    //$('.SingleLine1Num').html(unescape(obj.list));

                    alert(unescape(obj.info));

                } else {
                    alert(unescape(obj.info));
                }

            } catch (e) {
                //window.location = '/index.html';
            }
        });

        $(this).parents('div.AForm').find('.Aname').val("");
        $(this).parents('div.AForm').find('.Aphone').val("");
        $(this).parents('div.AForm').find('.Aaddress').val("");
        $(this).parents('div.AForm').find('a.closed1').click();
    }
});


/*---------------------刊物申请------------------------*/
$(document).on('click', '.PublicationsApplications', function () {
    var name = "", phone = "", address = "";

    //if ($(".form_box").validate('submitValidate'))//返回布尔值   
    if ($(this).parents('.AForm').validate('submitValidate')) {

        name = $(this).parents('div.AForm').find('.Aname').val();
        phone = $(this).parents('div.AForm').find('.Aphone').val();
        address = $(this).parents('div.AForm').find('.Aaddress').val();

        var data = "cmd=PublicationsApplications&id=" + $(this).attr("data-id") + "&Title=" + $(this).attr("data-title") + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&name=" + name + "&phone=" + phone + "&address=" + address;


        ajaxhelpS(data, function (msg) {
            try {
                var obj = eval('(' + msg + ')');

                if (unescape(obj.state) == 1) {

                    //$('.SingleLine1Num').html(unescape(obj.list));

                    alert(unescape(obj.info));

                } else {
                    alert(unescape(obj.info));
                }

            } catch (e) {
                //window.location = '/index.html';
            }
        });
        
        $(this).parents('div.AForm').find('.Aname').val("");
        $(this).parents('div.AForm').find('.Aphone').val("");
        $(this).parents('div.AForm').find('.Aaddress').val("");
        $(this).parents('div.AForm').find('a.closed1').click();
    }
});


/*---------------------搜索结果------------------------*/
$(document).on('click', '#addmoresearch', function () {
    btnSSJG($(this).attr('data-next'));
});

$(document).on('click', 'a.Searchtype', function () {
    $('#Searchtype').attr("data-type", $(this).attr("data-type"));
    $('a.Searchtype').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');
    //if ($(this).attr("data-id").length > 0) {
    //    $("a[data-id=" + $(this).attr("data-id") + "]").addClass('on');
    //}
    btnSSJG(1);
});

$(document).on('click', '#btnSearch1', function () {
    if ($.trim($("#searchword").val()) == '' || $.trim($('#searchword').val()) == '请输入关键字') {
        $('#searchword').focus();
        alert("请输入关键字");
        return;
    }
    else {
        window.location ="/other/search.html?key=" + escape($.trim($("#searchword").val())) + "";
    }
});


$(document).on('click', '#btnSearch2', function () {

    if ($.trim($("#searchword2").val()) == '' || $.trim($('#searchword2').val()) == '请输入关键字') {
        $('#searchword2').focus();
        alert("请输入关键字");
        return;
    }
    else {
        $('#keyval').html($("#searchword2").val());
        btnSSJG(1);
    }

});

function btnSSJG(page) {

    var txtKey = $('#searchword2').val();

    if (txtKey == null || txtKey == undefined) txtKey = "";

    var data = "cmd=btnSSJG&Key=" + txtKey + "&page=" + page + "&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID() + "&stype=" + $('#Searchtype').attr("data-type");

    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');
            if (Number(unescape(obj.count) <= page * 9)) {
                $('#addmoresearch').hide();
            } else {
                $('#addmoresearch').show();
                $('#addmoresearch').attr('data-max', Math.ceil((Number(unescape(obj.count) / 9 * 1.0)))).attr('data-next', Number(page) + 1);
            }
            //$('#formd_search_id').val(unescape(key));
            if (Number(page) == 1) {
                $('#ajaxList').html(unescape(obj.list));

            } else {
                $('#ajaxList').append(unescape(obj.list));
            }
        } catch (e) {
            //window.location = '/index.html';
        }
    });
}


function UpdateTraffic(strid) {
    var data = "cmd=UpdateTraffic&id=" + strid + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID();
    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');
            if (unescape(obj.state) == 1) {
                //alert("成功");
            }

        } catch (e) {
            //window.location = '/index.html';
        }
    });

}

/*-----------------免费申请设计预案------------------*/
function getSingleLine1Num(strid, strclassid) {
    var ids = '';
    $("." + strid).map(function () {
        ids += $(this).attr('data-id') + ",";
    });

    if (ids.length == 0) {
        return;
    }

    var data = "cmd=getSingleLine1Num&id=" + ids + "&classid=" + strclassid;
    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');
            if (unescape(obj.state) == 1) {

                var hits = unescape(obj.list);
                for (var i = 0; i < hits.split(',').length; i++) {
                    $("." + strid).eq(i).text(hits.split(',')[i]);
                }
            }

        } catch (e) {
            //window.location = '/index.html';
        }
    });  

}
function getSingleLine1Numto(strid, strclassid, strFielde) {

    $("." + strid).map(function () {

        var $objSingleLine1Num = $(this);

        var data = "cmd=getSingleLine1Numto&id=" + $objSingleLine1Num.attr("data-id") + "&classid=" + strclassid + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID() + "&sField=" + strFielde;

        ajaxhelpS(data, function (msg) {
            try {
                var obj = eval('(' + msg + ')');

                if (unescape(obj.state) == 1) {

                    $objSingleLine1Num.html(unescape(obj.list));
                }

            } catch (e) {
                //window.location = '/index.html';
            }
        });

    });
}


$(document).on('click', '.Applicationbtn', function () {
    var name = "", phone = "";

    //if ($(".form_box").validate('submitValidate'))//返回布尔值   
    if ($(this).parents('.AForm').validate('submitValidate')) {

        name = $(this).parents('div.AForm').find('.Aname').val();
        phone = $(this).parents('div.AForm').find('.Aphone').val();

        var data = "cmd=updateApplicationForm&id=" + $(this).attr("data-id") + "&Formname=" + $(this).attr("data-name") + "&name=" + name + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&phone=" + phone + "&classid=" + $(this).attr("data-classid") + "&Title=" + $(this).attr("data-Title");


        ajaxhelpS(data, function (msg) {
            try {
                var obj = eval('(' + msg + ')');

                if (unescape(obj.state) == 1) {

                    $('.SingleLine1Num').html(unescape(obj.list));

                    alert(unescape(obj.info));

                } else {
                    alert(unescape(obj.info));
                }

            } catch (e) {
                //window.location = '/index.html';
            }
        });
        $(this).parents('div.AForm').removeClass('disP')

        $(this).parents('div.AForm').find('.Aname').val("");
        $(this).parents('div.AForm').find('.Aphone').val("");
    }
});

$(document).on('click', '.Applicationbtn1', function () {
    var name = "", phone = "", sField = "";

    // if ($(".form_box").validate('submitValidate'))//返回布尔值   
    if ($(this).parents('.AForm').validate('submitValidate')) {
        name = $(this).parents('.AForm').find('.Aname').val();
        phone = $(this).parents('.AForm').find('.Aphone').val();
        sField = $(this).attr("data-sField");

        var data = "cmd=updateApplicationForm1&id=" + $(this).attr("data-id") + "&Formname=" + $(this).attr("data-name") + "&name=" + name + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&phone=" + phone + "&classid=" + $(this).attr("data-classid") + "&Title=" + $(this).attr("data-Title") + "&sField=" + sField;


        ajaxhelpS(data, function (msg) {
            try {
                var obj = eval('(' + msg + ')');

                if (unescape(obj.state) == 1) {
                    //if (sField == "title1") {
                    //    $('.SingleLine1Num1').html(unescape(obj.list));
                    //} else { $('.SingleLine1Num').html(unescape(obj.list)); }

                    //alert(unescape(obj.info));

                    //if (sField == "title") {
                    //    $('.SingleLine1Num2').html(unescape(obj.list));
                    //}
                    $('.SingleLine1Num1').html(unescape(obj.list));
                    $('.SingleLine1Num2').html(unescape(obj.list));
                } else {
                    alert(unescape(obj.info));
                }

            } catch (e) {
                //window.location = '/index.html';
            }
        });
        $(this).parents('.AForm').removeClass('disP')

        $(this).parents('.AForm').find('.Aname').val("");
        $(this).parents('.AForm').find('.Aphone').val("");
    }
});

/**--------------公共方法 end------------*/
$(document).on('keyup', '#txtsearchCase2', function () {
    $('#txtsearchCase').val($('#txtsearchCase2').val())
});
$(document).on('keyup', '#txtsearchDesigners2', function () {
    $('#txtsearchDesigners').val($('#txtsearchDesigners2').val())
});

/*-----------------案例------------------*/
$(document).on('click', '#addmoreCase', function () {
    getCaseList($(this).attr('data-next'));
});

$(document).on('click', '#searchbtnCase', function () {
    var strsearchval = $('#txtsearchCase').val();
    if (strsearchval.length <= 0) {
        alert("请输入搜索内容");
        return;
    }
    getCaseList(1);
});

$(document).on('click', 'a.stylefg', function () {
    $('#stylefg').attr("data-id", $(this).attr("data-id"));
    $('a.stylefg').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');
    if ($(this).attr("data-id").length > 0) {
        $("a[data-id=" + $(this).attr("data-id") + "]").addClass('on');
    }
    getCaseList(1);
});
$(document).on('click', 'a.spacekj', function () {

    $('#spacekj').attr("data-id", $(this).attr("data-id")).attr("data-styleName", $(this).text());
    $('a.spacekj').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');
    if ($(this).attr("data-id").length > 0) {
        $("a[data-id=" + $(this).attr("data-id") + "]").addClass('on');
    }
    getCaseList(1);
});
$(document).on('click', 'a.Designerss', function () {
    $('#Designerss').attr("data-id", $(this).attr("data-id"));
    $('a.Designerss').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');
    if ($(this).attr("data-id").length > 0) {
        $("a[data-id=" + $(this).attr("data-id") + "]").addClass('on');
    }
    getCaseList(1);
});
$(document).on('click', 'a.Propertys', function () {
    $('#Propertys').attr("data-id", $(this).attr("data-id"));
    $('a.Propertys').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');
    if ($(this).attr("data-id").length > 0) {
        $("a[data-id=" + $(this).attr("data-id") + "]").addClass('on');
    }
    getCaseList(1);
});

$(document).on('click', 'a#sortTime', function () {
    console.log($(this).find('img').attr('src'));
    if ($(this).find('img').attr('src') == '/images/arrowB.png') {
        $(this).find('img').attr('src', '/images/arrowB_2.png');
    } else {
        $(this).find('img').attr('src', '/images/arrowB.png');
    }
    $(this).data('sort', Number(1) - Number($(this).data('sort')));
    getCaseList(1);
});

$(document).on('click', 'a#sortHits', function () {
    if ($(this).find('img').attr('src') == '/images/arrowB.png') {
        $(this).find('img').attr('src', '/images/arrowB_2.png');
    } else {
        $(this).find('img').attr('src', '/images/arrowB.png');
    }
    $(this).data('sort', Number(1) - Number($(this).data('sort')));
    getCaseList(1);
});

function getCaseList(page) {
    if (Number(page) == 1) {
        $('#ajaxList').html("<li><div>数据加载中...</div></li>");
    }

    var data = "cmd=getCaseList&key=" + TDES.encrypt($('#stylefg').attr("data-id")) + "&page=" + TDES.encrypt(page) + "&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
                + "&txtsearch=" + ($('#txtsearchCase').val() == $('#txtsearchCase').attr('placeholder') ? '' : $('#txtsearchCase').val()) + "&keyspacekj=" + $('#spacekj').attr("data-id") + "&Designerss=" + $('#Designerss').attr("data-id")
                + "&Propertys=" + $('#Propertys').attr("data-id") + "&sortTime=" + $('#sortTime').data('sort') + "&sortHits=" + $('#sortHits').data('sort')
                + "&styleName=" + $('#spacekj').attr("data-styleName");

    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');


            if (Number(unescape(obj.count) <= page * 6)) {

                //$('#more').remove();
                $('#addmoreCase').hide();
            } else {
                $('#addmoreCase').show();
                $('#addmoreCase').attr('data-max', Math.ceil((Number(unescape(obj.count) / 6 * 1.0)))).attr('data-next', Number(page) + 1);
            }

            //$('#formd_search_id').val(unescape(key));

            if (Number(page) == 1) {
                $('#ajaxList').html(unescape(obj.list));
                $('#DesignersNum').html(unescape(obj.count));

            } else {
                $('#ajaxList').append(unescape(obj.list));
            }
        } catch (e) {
            //window.location = '/index.html';
        }
    });
}

function getOtherCaseList() {

    $('#OtherCaseList').html("<li><div>数据加载中...</div></li>");

        var data = "cmd=getOtherCaseList&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
                + "&Strwhere=" + $('#OtherCaseList').attr("data-where") + "&StrField=" + $('#OtherCaseList').attr("data-Field") + "&PageSize=3";

    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');

            $('#OtherCaseList').html(unescape(obj.list));

        } catch (e) {
            //window.location = '/index.html';
        }
    });
    $('#OtherCaseList1').html("<li><div>数据加载中...</div></li>");

    var data = "cmd=getOtherCaseList&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&Strwhere=" + $('#OtherCaseList1').attr("data-where") + "&StrField=" + $('#OtherCaseList1').attr("data-Field") + "&PageSize=3";

    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');

            $('#OtherCaseList1').html(unescape(obj.list));

        } catch (e) {
            //window.location = '/index.html';
        }
    });
}
function getOtherCaseListto() {

    $('#OtherCaseList').html("<li><div>数据加载中...</div></li>");

    var data = "cmd=getOtherCaseList&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&Strwhere=" + $('#OtherCaseList').attr("data-where") + "&StrField=" + $('#OtherCaseList').attr("data-Field") + "&PageSize=6";

    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');

            $('#OtherCaseList').html(unescape(obj.list));

        } catch (e) {
            //window.location = '/index.html';
        }
    });
   
}

function getPropertyDesigners() {

    $('#PropertyDesigners').html("<li><div>数据加载中...</div></li>");

    var data = "cmd=getPropertyDesigners&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&Strwhere=" + $('#OtherCaseList').attr("data-where") + "&StrField=" + $('#OtherCaseList').attr("data-Field") + "&PageSize=5";

    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');

            $('#PropertyDesigners').html(unescape(obj.list));

        } catch (e) {
            //window.location = '/index.html';
        }
    });

}

function getGoodatDesignersList() {

    $('#GoodatDesignersList').html("<li><div>数据加载中...</div></li>");

    var data = "cmd=getGoodatDesignersList&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
            + "&Strwhere=" + $('#GoodatDesignersList').attr("data-where") + "&StrField=" + $('#GoodatDesignersList').attr("data-Field");

    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');

            $('#GoodatDesignersList').html(unescape(obj.list));

        } catch (e) {
            //window.location = '/index.html';
        }
    });
}



/*-----------------设计师------------------*/
$(document).on('click', '#addmoreDesigners', function () {
    getDesignersList($(this).attr('data-next'));
});

$(document).on('click', 'a.Designers', function () {
    $('#Regionval').attr("data-id", $(this).attr("data-id"));
    $('a.Designers').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');

    if ($(this).attr("data-id").length > 0) {
        $("a[data-id=" + $(this).attr("data-id") + "]").addClass('on');
    }

    getDesignersList(1);
});

$(document).on('click', '#searchDesignersbtn', function () {
    var strsearchval = $('#txtsearchDesigners').val();
    if (strsearchval.length <= 0) {
        alert("请输入搜索内容");
        return;
    }
    getDesignersList(1);
});


function getDesignersList(page) {
    if (Number(page) == 1) {
        $('#ajaxList').html("<li><div>数据加载中...</div></li>");
    }
    if ($('#txtsearchDesigners').val() == '输入案例名称、楼盘名称、设计师姓名') $('#txtsearchDesigners').val("");
    var data = "cmd=getDesignersList&key=" + $('#Regionval').attr("data-id") + "&page=" + page + "&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
                + "&txtsearch=" + ($('#txtsearchDesigners').val() == $('#txtsearchDesigners').attr('placeholder') ? '' : $('#txtsearchDesigners').val());
    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');


            if (Number(unescape(obj.count) <= page * 12)) {

                //$('#more').remove();
                $('#addmoreDesigners').hide();
            } else {
                $('#addmoreDesigners').show();
                $('#addmoreDesigners').attr('data-max', Math.ceil((Number(unescape(obj.count) / 12 * 1.0)))).attr('data-next', Number(page) + 1);
            }

            //$('#formd_search_id').val(unescape(key));

            if (Number(page) == 1) {
                $('#ajaxList').html(unescape(obj.list));
                $('#DesignersNum').html(unescape(obj.count));

            } else {
                $('#ajaxList').append(unescape(obj.list));
            }
        } catch (e) {
            //window.location = '/index.html';
        }
    });
}

/*-----------------热装楼盘------------------*/
$(document).on('click', '#searchbtnProperty', function () {
    var strsearchval = $('#txtsearchProperty').val();
    if (strsearchval.length <= 0) {
        alert("请输入搜索内容");
        return;
    }
    getDressPropertyList(1);
});

$(document).on('click', 'a.Property', function () {

    //alert($(this).attr("data-id"));
    $('#Regionval').attr("data-id", $(this).attr("data-id"));
    $('a.Property').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');

    getDressPropertyList(1);

});

function getDressPropertyList(page) {
    if (Number(page) == 1) {
        $('#ajaxList').html("<li><div>数据加载中...</div></li>");
    }
    var data = "cmd=getDressPropertyList&key=" + $('#Regionval').attr("data-id") + "&page=" + page + "&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID()
                + "&txtsearch=" + ($('#txtsearchProperty').val() == $('#txtsearchProperty').attr('placeholder') ? '' : $('#txtsearchProperty').val());
    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');


            if (Number(unescape(obj.count) <= page * 9)) {

                //$('#more').remove();
                $('#addmoreProperty').hide();
            } else {
                $('#addmoreProperty').show();
                $('#addmoreProperty').attr('data-max', Math.ceil((Number(unescape(obj.count) / 9 * 1.0)))).attr('data-next', Number(page) + 1);
            }

            //$('#formd_search_id').val(unescape(key));

            if (Number(page) == 1) {
                $('#ajaxList').html(unescape(obj.list));
            } else {
                $('#ajaxList').append(unescape(obj.list));
            }
        } catch (e) {
            //window.location = '/index.html';
        }
    });
}

$(document).on('click', '#addmoreProperty', function () {

    getDressPropertyList($(this).attr('data-next'));

});

/*-----------------在施工地-所在地区------------------*/
$(document).on('click', 'a.Region', function () {

    //alert($(this).attr("data-id"));
    $('#Regionval').attr("data-id", $(this).attr("data-id"));
    $('a.Region').removeClass('on');
    $(this).addClass('on').siblings().removeClass('on');

    getConstructionsiteList(1);

});
/*-----------------在施工地------------------*/
function getConstructionsiteList(page) {
    if (Number(page) == 1) {
        $('#ajaxList').html("<li><div>数据加载中...</div></li>");
    }
    var data = "cmd=getConstructionsiteList&key=" + $('#Regionval').attr("data-id") + "&page=" + page + "&getRootPath=" + getRootPath() + "&getGroupID=" + getGroupID() + "&getSiteID=" + getSiteID();
    ajaxhelpS(data, function (msg) {
        try {
            var obj = eval('(' + msg + ')');


            if (Number(unescape(obj.count) <= page * 8)) {
                //$('#more').remove();
                $('#addmorephone').hide();
            } else {
                $('#addmorephone').show();
                $('#addmorephone').attr('data-max', Math.ceil((Number(unescape(obj.count) / 8 * 1.0)))).attr('data-next', Number(page) + 1);
            }

            //$('#formd_search_id').val(unescape(key));

            if (Number(page) == 1) {
                $('#ajaxList').html(unescape(obj.list));
            } else {
                $('#ajaxList').append(unescape(obj.list));
            }

        } catch (e) {
            //window.location = '/index.html';
        }
    });
}

function getUlHeight() {
    imgratio()
}

$(document).on('click', '#addmorephone', function () {

    getConstructionsiteList($(this).attr('data-next'));

});

/*-----------------在线预约提交------------------*/
$(document).on('click', '#btnOrder', function () {
    var validate = $(".footer dl.book").validate('submitValidate');
    if (validate) {
        var $this = $(this);
        submitOrder($this, function () {
            $('#txtName').val('');
            $('#txtTel').val('');
        });
    }
});

function submitOrder($this, fn) {
    var $defaultTxt = $this.text();
    var thisIndex = layer.msg('预约中，请稍后……', {
        time: 0,
        icon: 16
    });
    $this.text('提交中...').attr('disabled', 'disabled');
    var data = "cmd=insertOrder&n=" + TDES.encrypt(n) + "&t=" + TDES.encrypt(t) + "";
    ajaxhelpS(data, function (msg) {
        layer.close(thisIndex);
        var obj = eval('(' + msg + ')');
        $this.text($defaultTxt);
        thisIndex = layer.alert(unescape(obj.info), {
            time: 0,
            title: '提示信息',
            closeBtn: 0,
            btn: ['确定'],
            yes: function (index) {
                layer.close(thisIndex);
                $this.text($defaultTxt).removeAttr('disabled');
                if (unescape(obj.state) == 1) {
                    if (fn) {
                        fn();
                    }
                }
            }
        });
    });
}

/*--------------浏览次数绑定-------------*/
$(function () {
    var ids = '';
    $('.hits').map(function () {
        ids += $(this).data('id');
    });
    if (ids.length == 0) {
        return;
    }
    var data = "cmd=getHits&ids=" + TDES.encrypt(ids) + "";
    ajaxhelpS(data, function (msg) {
        var obj = eval('(' + msg + ')');
        if (unescape(obj.state) == 1) {
            var hits = unescape(obj.info);
            for (var i = 0; i < hits.split(',').length; i++) {
                $('.hits').eq(i).text(hits.split(',')[i]);
            }
        }
    });
});
/**--------------公共变量 end------------*/


/*-----------------------------全站搜索-------------------------------------------------------------------------*/
//$(function () {
//    $(document).on("click", "#btnSearch", function () {
//        if ($.trim($("#formd_search_id").val()) == '' || $.trim($('#formd_search_id').val()) == '请输入关键字') {
//            $('#formd_search_id').focus();
//            alert("请输入关键字");
//            return;
//        }
//        else {
//            window.location = "/other/search.html?key=" + escape($.trim($("#formd_search_id").val())) + "";
//        }
//    });
//    $('#btnSearch2').click(function () {
//        if ($.trim($("#formd_search_id2").val()) == '' || $.trim($("#formd_search_id2").val()) == '请输出要搜索的关键词') {
//            $('#formd_search_id2').focus();
//            alert("请输入关键字");
//            return;
//        }
//        getList($.trim($("#formd_search_id2").val()), 1);
//    });
//})

$(function () {
    $(document).on("click", "#btnReset", function () {
        window.location.href = this_url;
    });
    EnterFunction('#formd_search_id', '#btnSearch');
    EnterFunction('#formd_search_id2', '#btnSearch2');

    EnterFunction('#txtsearchCase', '#searchbtnCase');
    EnterFunction('#txtsearchDesigners', '#searchDesignersbtn');
    EnterFunction('#txtsearchProperty', '#searchbtnProperty');

    EnterFunction('#txtsearchCase2', '#searchbtnCase');
    EnterFunction('#txtsearchDesigners2', '#searchDesignersbtn');

    EnterFunction('#searchword2', '#btnSearch2');

    EnterFunction('#searchword', '#btnSearch1');
})



//全站搜索功能js方法
function getList(keyserch, page) {
    $('#ajaxList').html(lang.loading);
    $('#ajaxPage').html('');
    var ajaxListDate = $('#ajaxListDate').val();
    var ajaxPageDate = $('#ajaxPageDate').val();
    var ajaxSiteId = $('#ajaxSiteId').val();
    var ajaxGroupId = $('#ajaxGroupId').val();
    var ajaxPageSite = $('#ajaxPageSite').val();

    $('#formd_search_id').val(unescape(keyserch));
    $("#formd_search_id2").val(unescape(keyserch));
    $("#resultem").html(unescape(keyserch));


    var data = "cmd=_saveListAndPageDate&ajaxListDate=" + ajaxListDate + "&ajaxPageDate=" + ajaxPageDate + "&ajaxSiteId=" + ajaxSiteId + "&ajaxGroupId=" + ajaxGroupId + "&ajaxPageSite=" + ajaxPageSite + "";
    ajaxhelpS(data, function () {
        data = "cmd=search&key=" + keyserch + "&page=" + page + "";
        ajaxhelpS(data, function (msg) {
            var obj = eval('(' + msg + ')');
            $('#ajaxList').html(unescape(obj.list));
            $('#ajaxPage').html(unescape(obj.page));

            $("#SearchNum").html(unescape(obj.count));
        });
    });
}

//全站列表功能js方法
function getList_LB(key, page) {
    var _ajaxlist = "ajaxList";
    var _ajaxpage = "ajaxPage";

    var listidx = "", listcls = "", pageidx = "", pagecls = "";//列表索引 列表Class 分页索引 分页Class

    if ($('#ajaxListIndex').val() != undefined) {
        listidx = $.trim($('#ajaxListIndex').val());
    }
    if ($('#ajaxListClass').val() != undefined) {
        listcls = $.trim($('#ajaxListClass').val());
    }
    if ($('#ajaxPageIndex').val() != undefined) {
        pageidx = $.trim($('#ajaxPageIndex').val());
    }
    if ($('#ajaxPageClass').val() != undefined) {
        pagecls = $.trim($('#ajaxPageClass').val());
    }

    var bon = false;//是否是切换类型
    var dataBon = false;
    //如果列表索引 列表Class 分页索引 分页Class都不为空时 则是切换类型
    if (listidx != '' && listcls != '' && pageidx != '' && pagecls != '') {
        bon = true;
    }

    var listi = 0;
    var pagei = 0;
    //判断是否加载数据
    if (bon) {
        $('.' + listcls).map(function () {
            if (listi == listidx && ((($.trim($(this).html()) == lang.loading || $.trim($(this).html()) == lang.loading) && page == -1) || page >= 1)) {
                if (page == -1) page = 1;
                dataBon = true;
            }
            listi++;
        });
    }
    else {
        $('#' + _ajaxlist).html(lang.loading);
        $('#' + _ajaxlist).html('');
        $('#' + _ajaxpage).html('');
        dataBon = true;
    }
    var ajaxListDate = $('#ajaxListDate').val();
    var ajaxPageDate = $('#ajaxPageDate').val();
    var ajaxSiteId = $('#ajaxSiteId').val();
    var ajaxGroupId = $('#ajaxGroupId').val();
    var ajaxPageSite = $('#ajaxPageSite').val();

    var ajaxClassId = $('#ajaxClassId').val();
    var ajaxXgid = $('#ajaxXgid').val();
    var ajaxCategory = $('#ajaxCategory').val();
    var ajaxAboutDownload = $('#ajaxAboutDownload').val();
    var ajaxParentId = $('#ajaxParentId').val();
    if (dataBon) {

        var data = "cmd=_saveListAndPageDate_LB&ajaxListDate=" + ajaxListDate + "&ajaxPageDate=" + ajaxPageDate + "&ajaxSiteId=" + ajaxSiteId + "&ajaxGroupId=" + ajaxGroupId + "&ajaxPageSite=" + ajaxPageSite + "&ajaxClassId=" + ajaxClassId + "&ajaxXgid=" + ajaxXgid + "&ajaxCategory=" + ajaxCategory + "&ajaxAboutDownload=" + ajaxAboutDownload + "&ajaxParentId=" + ajaxParentId + "";
        ajaxhelpS(data, function () {
            data = "cmd=search_LB&key=" + key + "&page=" + page + "";
            ajaxhelpS(data, function (msg) {
                var obj = eval('(' + msg + ')');

                if (bon) {
                    listi = 0;
                    $('.' + listcls).map(function () {
                        if (listi == listidx && ($.trim($(this).html()) == lang.loading || page >= 1)) {
                            $(this).html(unescape(obj.list));
                        }
                        listi++;
                    });
                    pagei = 0;
                    $('.' + pagecls).map(function () {
                        if (pagei == pageidx && ($.trim($(this).html()) == '' || page >= 1)) {
                            $(this).html(unescape(obj.page));
                        }
                        pagei++;
                    });

                } else {

                    $('#' + _ajaxlist).html(unescape(obj.list));

                    $('#' + _ajaxpage).html(unescape(obj.page));
                }

                try {

                    var scriptStr = "<script src=\"/javascript/lightbox.js\"></script>";
                    $('#ajaxScriptCallback').html(scriptStr);
                } catch (e) {

                }
            });
        });
    }
}

/*----------------------导航定位-------------------*/
/*----------------------当前位置定位-------------------*/
$(function () {
    var MenuName = $.trim($("div.mbx span").text());

    $('div.nav>ul>li>a').map(function () {
        if ($.trim($(this).text()) == MenuName) {
            $(this).parent().addClass('on').siblings().removeClass('on');
        }
    });

    MenuName = $.trim($("div.mbx a:eq(1)").text());

    $('div.nav>ul>li>a').map(function () {
        if ($.trim($(this).text()) == MenuName) {
            $(this).parent().addClass('on').siblings().removeClass('on');
            index = 0;
        }
    });


})

/*--------------------过滤危险字符---------------------------------------------------*/

$(function () {
    $(document).on('keyup', 'input[type=text],textarea,input[type=password]', function () {

    //    //});
    //$('input[type=text],textarea,input[type=password]').keyup(function () {
        var val = $(this).val().toLocaleLowerCase();
        var otherKey = " and | exec | count | chr | mid | master | or | truncate | char | declare | join |<|>|*|/*|*/|;|\\u|insert|select|delete|update|create|drop|script|javascript|alert";
        var goon = true;
        for (var i = 0; i < otherKey.split('|').length ; i++) {
            if (goon) {
                if (val.indexOf(otherKey.split('|')[i]) != -1) {
                    alert('不能包含危险字符!');
                    $(this).val('');
                    goon = false;
                    return;
                }
            }
        }
    });
})

eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0-24]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('0 EnterFunction(1,2){$(1).keydown(0(e){var 4=e.which;if(4==13){$(2).click()}})}', [], 5, 'function|ElementInput|ElementBtn||curKey'.split('|'), 0, {}));

eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function getValue(0){return $.trim($(0).val())}', [], 1, 'obj'.split('|'), 0, {}));

eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(36) }; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0-9a-g]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function getValueDefaultError(3,6,7,5,4,8){9 1=true;9 0=$.trim($(3).val());2(0==6||0==\'\'){a.b(7);1=c;2(5){$(3).d()}}2((4!=""||4!=null)&&0!=\'\'){2(0.length<4){a.b(8);1=c;2(5){$(3).d()}}e f g(0,1)}e f g(0,1)}', [], 17, 'Temp|Validator|if|Element|Length|Focus|DefaultVal|ErrorInfo|LengthErrorInfo|var|layer|alert|false|focus|return|new|Array'.split('|'), 0, {}));

eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0-7]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function getLengthDefaultError(1,3,4,5){6 2=true;6 0=$.trim($(1).val());7(0.length<3||0==\'\'){alert(4);2=false;7(5){$(1).focus()}}return new Array(0,2)}', [], 8, 'Temp|Element|Validator|DefaultVal|ErrorInfo|Focus|var|if'.split('|'), 0, {}));
/*------------取元素value值  end-----------*/

/*----------------取元素text值-------------*/
eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function getText(0){return $.trim($(0).text())}', [], 1, 'obj'.split('|'), 0, {}));

eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0-7]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function getTextDefaultError(0,3,4,5){6 1=true;6 2=$.trim($(0).val());7(2==3){alert(4);1=false;7(5){$(0).focus()}}return new Array(2,1)}', [], 8, 'Element|Validator|Temp|DefaultVal|ErrorInfo|Focus|var|if'.split('|'), 0, {}));

/*--------------验证元素输入的电话号码|手机号码格式是否正确-------------------*/
eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function IsTelOrPhone(0){if(!regtelphone.test($(0).val())){alert(lang.telformat);$(0).focus()}}', [], 1, 'obj'.split('|'), 0, {}));
/*-----------------元素输入的数字格式,如果输入非数字的字符 将默认设置为1------------*/

eval(function (p, a, c, k, e, d) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) d[e(c)] = k[c] || e(c); k = [function (e) { return d[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('$(6 () {    $(\'.1>8\').9(6 (5) {        d 7 = $(\'.1>8\').7($(b));        $(\'#2\').c($(b).3("4-0"));        a(7);    });});', 62, 14, 'ClassId|ajaxBQQH|ajaxClassId|attr|data|e|function|index|li|mouseover|setListAndPageHtml|this|val|var'.split('|'), 0, {}));

eval(function (p, a, c, k, e, d) { e = function (c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) d[e(c)] = k[c] || e(c); k = [function (e) { return d[e] }]; e = function () { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('6 e(a) {    $(\'#3\').h(a);    $(\'#4\').h(a);    9 ($.g($(\'.\' + $(\'#2\').h()).5(a).f()).c == 0) {        $(\'.\' + $(\'#2\').h()).5(a).8(b.d);    }    7("", -1);}', 62, 18, '||ajaxListClass|ajaxListIndex|ajaxPageIndex|eq|function|getList_LB|html|if|index|lang|length|loading|setListAndPageHtml|text|trim|val'.split('|'), 0, {}));

/*---------------退订 订阅信息 begin----------*/
/*------------取元素value值-----------*/
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(36) }; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0-9a-l]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('a getValue(i){5 $.b($(i).c())}a getValueDefaultError(2,6,7,4,8,j){9 1=k;9 0=$.b($(2).c());3(0==6||0==\'\'){d(7);1=e;3(4){$(2).f()}}3((8!=""||8!=null)&&0!=\'\'){3(0.l<8){d(j);1=e;3(4){$(2).f()}}5 g h(0,1)}5 g h(0,1)}a getLengthDefaultError(2,6,7,4){9 1=k;9 0=$.b($(2).c());3(0.l<6||0==\'\'){d(7);1=e;3(4){$(2).f()}}5 g h(0,1)}', [], 22, 'Temp|Validator|Element|if|Focus|return|DefaultVal|ErrorInfo|Length|var|function|trim|val|alert|false|focus|new|Array|obj|LengthErrorInfo|true|length'.split('|'), 0, {}));

/*----------------取元素text值-------------*/
eval(function (p, a, c, k, e, r) { e = function (c) { return c.toString(36) }; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0-9a-c]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('3 getText(4){5 $.6($(4).7())}3 getTextDefaultError(0,8,9,a){b 1=true;b 2=$.6($(0).7());c(2==8){alert(9);1=false;c(a){$(0).focus()}}5 new Array(2,1)}', [], 13, 'Element|Validator|Temp|function|obj|return|trim|text|DefaultVal|ErrorInfo|Focus|var|if'.split('|'), 0, {}));

/*--------------验证元素输入的电话号码|手机号码格式是否正确-------------------*/
eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function IsTelOrPhone(0){if(!regtelphone.test($(0).val())){alert(\'电话号码格式不正确!\');$(0).focus()}}', [], 1, 'obj'.split('|'), 0, {}));

/*-----------------元素输入的数字格式,如果输入非数字的字符 将默认设置为1------------*/
eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[0-2]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function IsNum(0,1){if(!regnum.test($(0).2())){$(0).2(1)}}', [], 3, 'obj|obj2|val'.split('|'), 0, {}));

/*-点击次数*/
eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[02-8]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('$(0(){5(\'#dianji\')});0 5(6){2 3=window.location.href;2 4=/\\d{1,}_(\\d{1,})\\.html/;if(4.test(3)){2 7="cmd=updatecrt&id="+4.exec(3)[1]+"";ajaxhelpS(7,0(8){$(6).text(8)})}}', [], 9, 'function||var|this_href|reg|UpdateCrt|obj|data|msg'.split('|'), 0, {}));

/*-重置按钮*/
eval(function (p, a, c, k, e, r) { e = String; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '^$' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('$(document).on("click","#btnReset",function(){window.location.href=this_url});', [], 1, ''.split('|'), 0, {}));
/*-----------------------身份证号码真伪验证-----------------------------
**返回结果
**0   表示身份证号码正确
**1   表示非法身份证号
**2   表示非法地区
**3   表示非法生日
*/

eval(function (p, a, c, k, e, r) { e = function (c) { return (c < 62 ? '' : e(parseInt(c / 62))) + ((c = c % 62) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if ('0'.replace(0, e) == 0) { while (c--) r[e(c)] = k[c]; k = [function (e) { return r[e] || e }]; e = function () { return '[579bcefhjl-wyzA-F]' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p }('function cardValid(s){7 t={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"};7 l=0;7 5=s;7 u=5.v;9(!/^\\d{17}(\\d|x)$/i.w(5)&&!/^\\d{15}$/i.w(5)){b 1}9(t[y(5.c(0,2))]==null){b 2}9(u==15){e="19"+5.c(6,2)+"-"+h(5.c(8,2))+"-"+h(5.c(10,2));7 d=f m(e.n(/-/g,"/"));7 z=d.o().toString()+"-"+(d.A()+1)+"-"+d.B();9(e!=z){b 3}5=5.p(0,6)+"19"+5.p(6,15);5=5+GetVerifyBit(5)}7 C=f m();7 q=C.o();7 D=q-150;7 r=5.p(6,10);9(r<D||r>q){b 3}5=5.n(/x$/i,"a");e=5.c(6,4)+"-"+h(5.c(10,2))+"-"+h(5.c(12,2));7 d=f m(e.n(/-/g,"/"));9(e!=(d.o()+"-"+(d.A()+1)+"-"+d.B())){b 3}E(7 i=17;i>=0;i--){l+=(Math.pow(2,i)%11)*y(5.charAt(17-i),11)}9(l%11!=1){b 1}7 j=f F();j=f F("11111119111111111","12121219121212121","123456789087654321");E(7 k=0;k<j.v;k++){9(5.indexOf(j[k])!=-1){b 1}}b 0}', [], 42, '|||||strIDno||var||if||return|substr||sBirthday|new||Number||words||iSum|Date|replace|getFullYear|substring|nowYear|year|cardID|aCity|idCardLength|length|test||parseInt|dd|getMonth|getDate|nowDate|oldYear|for|Array'.split('|'), 0, {}));

/*-------------------公共ajax调用方法-----------------*/

function ajaxhelpS(data, fn) { $.ajax({ "type": "post", "url": "/ajax/AjaxHandler_SCZS.ashx", "data": data, "datatype": "html", "success": function (msg) { if (fn) { fn(msg); getUlHeight(); } }, "error": function () { } }) }
